<?php

class MyDateTime {
	private $current;

	public function __construct(){
    	$this->current = time();
	}

	public function getFormated($format){
		if($format == "MYSQL_DATETIME"){
			return date('Y-m-d H:i:s',$this->current);
		}else return "";
	}
}

?>